Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.document.pageproviders--providers

This contribution is part of XML component org.nuxeo.ecm.document.pageproviders inside nuxeo-platform-default-config-9.10.jar /OSGI-INF/document-pageprovider-contrib.xml

Extension Point

Extension point providers of component PageProviderService.

Contributed Items

  • <coreQueryPageProvider name="document_content">
          <whereClause docType="AdvancedSearch">
            <predicate operator="FULLTEXT" parameter="ecm:fulltext">
              <field name="fulltext_all" schema="advanced_search"/>
            </predicate>
            <predicate operator="FULLTEXT" parameter="dc:title">
              <field name="title" schema="advanced_search"/>
            </predicate>
            <predicate operator="BETWEEN" parameter="dc:modified">
              <field name="modified_min" schema="advanced_search"/>
              <field name="modified_max" schema="advanced_search"/>
            </predicate>
            <fixedPart>
              ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
              ecm:mixinType != 'HiddenInNavigation' AND ecm:currentLifeCycleState != 'deleted'
            </fixedPart>
          </whereClause>
          <sort ascending="true" column="dc:title"/>
          <pageSize>20</pageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="advanced_document_content">
          <trackUsage>true</trackUsage>
          <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
          <whereClause docType="AdvancedContent">
            <fixedPart>
              ecm:isCheckedInVersion = 0 AND
              ecm:mixinType !=
              'HiddenInNavigation' AND ecm:currentLifeCycleState
              != 'deleted'
            </fixedPart>
            <predicate operator="FULLTEXT" parameter="dc:title">
              <field name="title" schema="advanced_content"/>
            </predicate>
            <predicate operator="=" parameter="ecm:parentId">
              <field name="ecm_parentId" schema="advanced_content"/>
            </predicate>
          </whereClause>
          <aggregates>
            <aggregate id="dc_last_contributor_agg" parameter="dc:lastContributor" type="terms">
              <field name="dc_last_contributor_agg" schema="advanced_content"/>
              <properties>
                <property name="size">10</property>
              </properties>
            </aggregate>
            <aggregate id="dc_modified_agg" parameter="dc:modified" type="date_range">
              <field name="dc_modified_agg" schema="advanced_content"/>
              <properties>
                <property name="format">"dd-MM-yyyy"</property>
              </properties>
              <dateRanges>
                <dateRange fromDate="now-24H" key="last24h" toDate="now"/>
                <dateRange fromDate="now-7d" key="lastWeek" toDate="now-24H"/>
                <dateRange fromDate="now-1M" key="lastMonth" toDate="now-7d"/>
                <dateRange fromDate="now-1y" key="lastYear" toDate="now-1M"/>
                <dateRange key="priorToLastYear" toDate="now-1y"/>
              </dateRanges>
            </aggregate>
          </aggregates>
          <sort ascending="false" column="dc:modified"/>
          <pageSize>20</pageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="document_trash_content">
          <whereClause docType="AdvancedSearch">
            <predicate operator="FULLTEXT" parameter="ecm:fulltext">
              <field name="fulltext_all" schema="advanced_search"/>
            </predicate>
            <predicate operator="FULLTEXT" parameter="dc:title">
              <field name="title" schema="advanced_search"/>
            </predicate>
            <predicate operator="BETWEEN" parameter="dc:modified">
              <field name="modified_min" schema="advanced_search"/>
              <field name="modified_max" schema="advanced_search"/>
            </predicate>
            <fixedPart>
              ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
              ecm:mixinType !=
              'HiddenInNavigation' AND ecm:currentLifeCycleState =
              'deleted'
            </fixedPart>
          </whereClause>
          <sort ascending="true" column="dc:title"/>
          <pageSize>20</pageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="section_content">
          <whereClause docType="AdvancedSearch">
            <predicate operator="FULLTEXT" parameter="ecm:fulltext">
              <field name="fulltext_all" schema="advanced_search"/>
            </predicate>
            <predicate operator="FULLTEXT" parameter="dc:title">
              <field name="title" schema="advanced_search"/>
            </predicate>
            <predicate operator="BETWEEN" parameter="dc:modified">
              <field name="modified_min" schema="advanced_search"/>
              <field name="modified_max" schema="advanced_search"/>
            </predicate>
            <fixedPart>
              ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
              ecm:mixinType !=
              'HiddenInNavigation' AND ecm:currentLifeCycleState
              != 'deleted'
            </fixedPart>
          </whereClause>
          <sort ascending="true" column="dc:title"/>
          <pageSize>20</pageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="orderable_document_content">
          <whereClause docType="AdvancedSearch">
            <predicate operator="FULLTEXT" parameter="ecm:fulltext">
              <field name="fulltext_all" schema="advanced_search"/>
            </predicate>
            <predicate operator="FULLTEXT" parameter="dc:title">
              <field name="title" schema="advanced_search"/>
            </predicate>
            <predicate operator="BETWEEN" parameter="dc:modified">
              <field name="modified_min" schema="advanced_search"/>
              <field name="modified_max" schema="advanced_search"/>
            </predicate>
            <fixedPart>
              ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
              ecm:mixinType !=
              'HiddenInNavigation' AND ecm:currentLifeCycleState
              != 'deleted'
            </fixedPart>
          </whereClause>
          <sort ascending="true" column="ecm:pos"/>
          <sortable>false</sortable>
          <pageSize>20</pageSize>
        </coreQueryPageProvider>

XML Source

<extension point="providers" target="org.nuxeo.ecm.platform.query.api.PageProviderService">

    <coreQueryPageProvider name="document_content">
      <whereClause docType="AdvancedSearch">
        <predicate operator="FULLTEXT" parameter="ecm:fulltext">
          <field name="fulltext_all" schema="advanced_search"/>
        </predicate>
        <predicate operator="FULLTEXT" parameter="dc:title">
          <field name="title" schema="advanced_search"/>
        </predicate>
        <predicate operator="BETWEEN" parameter="dc:modified">
          <field name="modified_min" schema="advanced_search"/>
          <field name="modified_max" schema="advanced_search"/>
        </predicate>
        <fixedPart>
          ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
          ecm:mixinType != 'HiddenInNavigation' AND ecm:currentLifeCycleState != 'deleted'
        </fixedPart>
      </whereClause>
      <sort ascending="true" column="dc:title"/>
      <pageSize>20</pageSize>
    </coreQueryPageProvider>

    <coreQueryPageProvider name="advanced_document_content">
      <trackUsage>true</trackUsage>
      <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
      <whereClause docType="AdvancedContent">
        <fixedPart>
          ecm:isCheckedInVersion = 0 AND
          ecm:mixinType !=
          'HiddenInNavigation' AND ecm:currentLifeCycleState
          != 'deleted'
        </fixedPart>
        <predicate operator="FULLTEXT" parameter="dc:title">
          <field name="title" schema="advanced_content"/>
        </predicate>
        <predicate operator="=" parameter="ecm:parentId">
          <field name="ecm_parentId" schema="advanced_content"/>
        </predicate>
      </whereClause>
      <aggregates>
        <aggregate id="dc_last_contributor_agg" parameter="dc:lastContributor" type="terms">
          <field name="dc_last_contributor_agg" schema="advanced_content"/>
          <properties>
            <property name="size">10</property>
          </properties>
        </aggregate>
        <aggregate id="dc_modified_agg" parameter="dc:modified" type="date_range">
          <field name="dc_modified_agg" schema="advanced_content"/>
          <properties>
            <property name="format">"dd-MM-yyyy"</property>
          </properties>
          <dateRanges>
            <dateRange fromDate="now-24H" key="last24h" toDate="now"/>
            <dateRange fromDate="now-7d" key="lastWeek" toDate="now-24H"/>
            <dateRange fromDate="now-1M" key="lastMonth" toDate="now-7d"/>
            <dateRange fromDate="now-1y" key="lastYear" toDate="now-1M"/>
            <dateRange key="priorToLastYear" toDate="now-1y"/>
          </dateRanges>
        </aggregate>
      </aggregates>
      <sort ascending="false" column="dc:modified"/>
      <pageSize>20</pageSize>
    </coreQueryPageProvider>

    <coreQueryPageProvider name="document_trash_content">
      <whereClause docType="AdvancedSearch">
        <predicate operator="FULLTEXT" parameter="ecm:fulltext">
          <field name="fulltext_all" schema="advanced_search"/>
        </predicate>
        <predicate operator="FULLTEXT" parameter="dc:title">
          <field name="title" schema="advanced_search"/>
        </predicate>
        <predicate operator="BETWEEN" parameter="dc:modified">
          <field name="modified_min" schema="advanced_search"/>
          <field name="modified_max" schema="advanced_search"/>
        </predicate>
        <fixedPart>
          ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
          ecm:mixinType !=
          'HiddenInNavigation' AND ecm:currentLifeCycleState =
          'deleted'
        </fixedPart>
      </whereClause>
      <sort ascending="true" column="dc:title"/>
      <pageSize>20</pageSize>
    </coreQueryPageProvider>

    <coreQueryPageProvider name="section_content">
      <whereClause docType="AdvancedSearch">
        <predicate operator="FULLTEXT" parameter="ecm:fulltext">
          <field name="fulltext_all" schema="advanced_search"/>
        </predicate>
        <predicate operator="FULLTEXT" parameter="dc:title">
          <field name="title" schema="advanced_search"/>
        </predicate>
        <predicate operator="BETWEEN" parameter="dc:modified">
          <field name="modified_min" schema="advanced_search"/>
          <field name="modified_max" schema="advanced_search"/>
        </predicate>
        <fixedPart>
          ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
          ecm:mixinType !=
          'HiddenInNavigation' AND ecm:currentLifeCycleState
          != 'deleted'
        </fixedPart>
      </whereClause>
      <sort ascending="true" column="dc:title"/>
      <pageSize>20</pageSize>
    </coreQueryPageProvider>

    <coreQueryPageProvider name="orderable_document_content">
      <whereClause docType="AdvancedSearch">
        <predicate operator="FULLTEXT" parameter="ecm:fulltext">
          <field name="fulltext_all" schema="advanced_search"/>
        </predicate>
        <predicate operator="FULLTEXT" parameter="dc:title">
          <field name="title" schema="advanced_search"/>
        </predicate>
        <predicate operator="BETWEEN" parameter="dc:modified">
          <field name="modified_min" schema="advanced_search"/>
          <field name="modified_max" schema="advanced_search"/>
        </predicate>
        <fixedPart>
          ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
          ecm:mixinType !=
          'HiddenInNavigation' AND ecm:currentLifeCycleState
          != 'deleted'
        </fixedPart>
      </whereClause>
      <sort ascending="true" column="ecm:pos"/>
      <sortable>false</sortable>
      <pageSize>20</pageSize>
    </coreQueryPageProvider>

  </extension>